package com.asset.dispoal.menu.service.converter;

import com.asset.dispoal.menu.domain.db.entity.GbMenuDo;
import com.asset.dispoal.menu.dto.requset.GbMenuRequest;
import com.asset.dispoal.menu.dto.response.GbMenuResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/2/28$
 */
@Mapper
public interface MenuConverter {

    MenuConverter INSTANCE = Mappers.getMapper(MenuConverter.class);

    GbMenuDo reqToDo(GbMenuRequest request);


    List<GbMenuResponse> doToRes(List<GbMenuDo> doList);

}
